<template>
<div id="goView">goView 测试嘶嘶嘶</div>
</template>

<script>
import {loadMicroApp, start , } from 'qiankun'
import Cookies from 'js-cookie'
import actions from '@/utils/actions'
const TokenKey = 'Admin-Token'
export default {
  name: "index",
  mounted() {
    if (!window.qiankunStarted) {
      window.qiankunStarted = true
      // registerApps()
      start({
        sandbox: {
          experimentalStyleIsolation: true // 样式隔离
        }
      })
    }
  },
}

actions.setGlobalState({TokenKey:Cookies.get(TokenKey)})
loadMicroApp({
  name: 'goview',
  entry: '//localhost:3000',
  container: '#goView',
  props: {
    actions
  }
});



</script>

<style scoped>

</style>
